package cc.ycws.core.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import com.alibaba.fastjson.annotation.JSONField;

/**
  * <p>
  * 设备表
  * </p>
  *
  * @author tutu
  * @since 2018-05-22
  */
@TableName("dc_device")
public class DcDevice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备编号
     */
    @TableField("device_no")
    private String deviceNo;

    /**
     * 小区编号
     */
    @TableField("community_no")
    private String communityNo;

    /**
     * 楼栋编号(如果为null,则表示设备属于整个小区)
     */
    @TableField("building_no")
    private String buildingNo;

    /**
     * 设备名称
     */
    @TableField("device_name")
    private String deviceName;

    /**
     * 设备mac地址
     */
    private String mac;

    /**
     * 在线情况,如果三分钟未调后台接口视为离线(0=在线 1=离线)
     */
    @TableField("online_status")
    private String onlineStatus;

    /**
     * 建档人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String creator;

    /**
     * 建档时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT_UPDATE)
    private Date createTime;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifier;

    /**
     * 修改时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;

    /**
     * 备注
     */
    private String remarks;

    public Integer getId() {
    return id;
    }

    public void setId(Integer id) {
    this.id = id;
    }
    public String getDeviceNo() {
    return deviceNo;
    }

    public void setDeviceNo(String deviceNo) {
    this.deviceNo = deviceNo;
    }
    public String getCommunityNo() {
    return communityNo;
    }

    public void setCommunityNo(String communityNo) {
    this.communityNo = communityNo;
    }
    public String getBuildingNo() {
    return buildingNo;
    }

    public void setBuildingNo(String buildingNo) {
    this.buildingNo = buildingNo;
    }
    public String getDeviceName() {
    return deviceName;
    }

    public void setDeviceName(String deviceName) {
    this.deviceName = deviceName;
    }
    public String getMac() {
    return mac;
    }

    public void setMac(String mac) {
    this.mac = mac;
    }
    public String getOnlineStatus() {
    return onlineStatus;
    }

    public void setOnlineStatus(String onlineStatus) {
    this.onlineStatus = onlineStatus;
    }
    public String getCreator() {
    return creator;
    }

    public void setCreator(String creator) {
    this.creator = creator;
    }
    public Date getCreateTime() {
    return createTime;
    }

    public void setCreateTime(Date createTime) {
    this.createTime = createTime;
    }
    public String getModifier() {
    return modifier;
    }

    public void setModifier(String modifier) {
    this.modifier = modifier;
    }
    public Date getModifyTime() {
    return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
    this.modifyTime = modifyTime;
    }
    public String getRemarks() {
    return remarks;
    }

    public void setRemarks(String remarks) {
    this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "DcDevice{" +
                "id=" + id +
                ", deviceNo=" + deviceNo +
                ", communityNo=" + communityNo +
                ", buildingNo=" + buildingNo +
                ", deviceName=" + deviceName +
                ", mac=" + mac +
                ", onlineStatus=" + onlineStatus +
                ", creator=" + creator +
                ", createTime=" + createTime +
                ", modifier=" + modifier +
                ", modifyTime=" + modifyTime +
                ", remarks=" + remarks +
        "}";
    }
}
